API 400 Error responses discard the error description
Closed this issue · 0 comments
matt-deboer commented
Opon receiving a 400 Bad Request
from the API, it would be useful to keep/propagate the description
text as part of the Error type that is returned for troubleshooting purposes.
For example, on a current bad request, the caused by
simply includes:
API responded with bad status: 400 Bad Request
but if I print the actual json received, it includes:
{
"code" : 2,
"description" : "Bad pipeline description",
"response" : null
}
which is a bit more useful for troubleshooting...