dimanche 22 février 2015

HTTP Status code >= 300 Returning JSON

I was wondering if it is acceptable/common to have a server return a JSON response along side a 3xx or 4xx response?


The reason I ask this is because I do return a JSON response with more details regarding the error, but it seems the engine I am using doesn't agree with what I am doing. I would like to make sure my approach is acceptable before submitting a PR.





Aucun commentaire:

Enregistrer un commentaire