For a successful RESTful HTTP request, we can return an object that is serialized.
But in case of an error, for example when a resource is not found (404), should this return a HTTP response with error code 404, or can it alternatively return an object which has a custom error information in it?