0

I like to have messages that are different than the standard returned by RestException class.

For example HTTP code 400 with custom message:

return array ('code'=>400, 'result'=>"Fail", 'reason'=>"Bad meta tag: $meta"); 

Is this possible with the latest version of the framework?

Antoan Milkov
  • 2,152
  • 17
  • 30

1 Answers1

0

You want to have custom HTTP response message. This might help. http://www.php.net/manual/en/function.http-response-code.php