When uploading large images(> 10mb) the error response comes back as an HTML document, regardless of the Accept header. It seems this isn’t coming from the PHP app and it is something needs to be fixed at the BE. But unfortunately we can't count on it. So until this is resolved we are told that we could interpret 413 HTTP status code responses (for this endpoint) as being too large of an image and hardcode the error message in the client.
When uploading large images(> 10mb) the error response comes back as an HTML document, regardless of the Accept header. It seems this isn’t coming from the PHP app and it is something needs to be fixed at the BE. But unfortunately we can't count on it. So until this is resolved we are told that we could interpret 413 HTTP status code responses (for this endpoint) as being too large of an image and hardcode the error message in the client.