Community

Call to service always returns HTTP 500 error even if I specify a different code in services_error

Hi all, new to Drupal and wondering if anyone can help.

I'm using REST Server to create a service, and the front end tier requires certain HTTP error codes to take actions for different scenarios.

e.g.
services_error('message',404) for a not found scenario.

However if this error is hit the service always seems to return a 500 response, not the code I'm looking for. Any ideas?

Help appreciated in advance, thanks!

nobody click here