Skip to content

Commit

Permalink
docs: add docs for ErrorResponseGenerator
Browse files Browse the repository at this point in the history
  • Loading branch information
bethesque committed Jul 14, 2023
1 parent db7dee3 commit 70f7cbc
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/pact_broker/api/resources/error_response_generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@
require "pact_broker/errors"
require "pact_broker/messages"

# Generates the response headers and body for use when there is an unexpected
# error when executing a Webmachine resource request.
# Uses the Accept header to determine whether to return application/problem+json
# or application/hal+json, for backwards compatibility.
# In the next major version of the Pact Broker, all error responses
# should use problem+json, regardless of Accept headers.

module PactBroker
module Api
module Resources
Expand Down

0 comments on commit 70f7cbc

Please sign in to comment.