REST API Error responses

Hi,

I had found some time ago that payload format of responses in case of error had changed. I need to extract actual message from that payload. Before the change, in most cases payload contained properties “errorMessages” or “errors” which is documented - https://docs.atlassian.com/jira/REST/cloud/

Now it is like this: {“status-code”:404,“message”:“Property with key not found.”} which I am happy with. I just wanna ask If I can depend on such format or better not to do that.

Kind Regards,
Maciej

Hi @maciej.dudziak,

Some of our older REST resources do not follow our standard error response format, but this is the format we are trying to standardize on moving forward.

2 Likes