How to properly send an HTTP message to the client

I don’t think any RESTful client would expect to look at the reason phrase to figure out what went wrong; most RESTful services I’ve seen/used will send the standard status info and an expanded message in the body of the response. sendError(int, String) is ideal for that situation.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)