function hook_rest_server_execute_errors_alter in Services 7.3
Same name in this branch
- 7.3 docs/services.alter.api.php \hook_rest_server_execute_errors_alter()
- 7.3 servers/rest_server/rest_server.api.php \hook_rest_server_execute_errors_alter()
Allows alteration of error data before the status code or message are returned.
Parameters
array $error_alter_array: An associative array with the following keys:
- 'code': the HTTP status code.
- 'header_message': the message returned as part of the error response (for instance, "404 Not found").
- 'body_data': data that was passed to the thrown exception.
array $controller: The current controller definition.
array $arguments: Arguments passed to the current controller.
See also
RESTServer->handleException()
1 invocation of hook_rest_server_execute_errors_alter()
- RESTServer::handleException in servers/
rest_server/ includes/ RESTServer.inc - Set proper header and message in case of exception.
File
- docs/
services.alter.api.php, line 184 - Documentation about Services alter hooks and variables.
Code
function hook_rest_server_execute_errors_alter(&$error_alter_array, $controller, $arguments) {
}