Module: HTTP – Process the body of a response when the code isn't 2XX-3XX
complete
Elías Silva
On an HTTP module, if you turn on the "Evaluate all states as errors (except for 2xx and 3xx)" option and the request returns an error code, there is no way to process the body of that response. Some services add extra context about the error in the body of a 4XX-5XX code.
This will allow you to do multiple things, such as:
- Set proper routing based on the message.
- Save a record of the specifics of the error.
- Handle error responses in a more efficient and quick way.
Thanks!
Log In
Tereza Klobouckova
complete
Hello Makers,
this has been resolved some months ago. The error message is returned in the "detail" parameter that can be mapped in error handlers as well.
Thank you and happy automating
Tereza
Roberto Mejia
Yes, this is crucial! I just spend 3 days trying to figure out what the error I'm receiving through trial and error because I can't see the error response.
The only way to diagnose what's wrong with an HTTP error is to try to replicate the exact same call on Postman, which not always possible, and get the body that way.