do not test status codes to determine errors, pass the error object to  json_api renderer instead

As per Ed's suggestions just pass the error object into the renderer to allow the presenter to format the response correctly.