Have you failed a job interview?
Send us your job interview questions and get correct answers.

BP146: Do not return plain text

While returning plain text is not against RESTful constraints, it's a good practice to return structured data in the response body so that it can be easily parsed by the client.

JSON or XML might be a good condidate for the data format. Content negotiation mechanism should be used.


No Comments Yet.
Be the first to tell us what you think.

Download Better Coder application to your phone and get unlimited access to the collection of enterprise best practices.

Get it on Google Play