How to imlement "warnings" with HTTP protocol? -


my server application provides special url /myapp/status internal monitoring. if application ok returns http response code 200 (ok), otherwise returns response code 503 (service unavailable).

now add "warning" case ("i not ok still available"). application return response code 200 , reason "warning" in case.

does make sense? can send "reason" along code 200?

if want keep true http semantics, continue return 200 ok code, add warning: headers response (those defined per rfc 2616).


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -