Uploaded image for project: 'FHIR Specification Feedback'
  1. FHIR Specification Feedback
  2. FHIR-37283

Are 3xx errors permitted?

    XMLWordPrintableJSON

Details

    • Icon: Question Question
    • Resolution: Considered - Question answered
    • FHIRCast (FHIR)
    • 2.0.0
    • Infrastructure & Messaging
    • Subscribing and unsubscribing [deprecated]
    • 2.4.2
    • Hide

      http://hl7.org/fhir/uv/fhircast/2022MAY/2-4-Subscribing.html#subscription-response

      > the Hub SHALL respond to a subscription request with an HTTP 202 “Accepted” response.

      >If a Hub refuses the request or finds any errors in the subscription request, an appropriate HTTP error response code (4xx or 5xx) SHALL be returned.

      The Hub must respond with either a 202 or an http error code, which are the codes in the 3 and 4 hundred range.

      No, a Hub should not respond with a 3xx. If it did, it's unclear what the returned url would mean or what the client should do with it.

      Show
      http://hl7.org/fhir/uv/fhircast/2022MAY/2-4-Subscribing.html#subscription-response > the Hub SHALL respond to a subscription request with an HTTP 202 “Accepted” response. >If a Hub refuses the request or finds any errors in the subscription request, an appropriate HTTP error response code (4xx or 5xx) SHALL be returned. The Hub must respond with either a 202 or an http error code, which are the codes in the 3 and 4 hundred range. No, a Hub should not respond with a 3xx. If it did, it's unclear what the returned url would mean or what the client should do with it.

    Description

      Can a Hub respond with a 3xx redirect? If so, is a subscriber expected to follow?

      (Comment 11 - imported by: Lloyd McKenzie)

      Attachments

        Activity

          People

            Unassigned Unassigned
            esilver Elliot Silver
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: