REST API Error responses


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 -

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,

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.