Responds status and error handling for Rails.