Uploaded image for project: 'Thrift'
  1. Thrift
  2. THRIFT-5373

HTTP status in case of Protocol/Transport exceptions

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.15.0
    • netstd - Library
    • None
    • Patch Available

    Description

      The THttpServerTransport already handles TTransportExceptions that occur during the "message receive" phase and delivers a HTTP 500 (internal server error) when no other response has been generated so far (instead of delivering the default HTTP 200 OK along with an empty message).

      What is currently not handled is TProtocolExceptions (happens i.e. when a required field is missing). So the goal of the ticket is to a) handle these errors as well and b) return a HTTP 400 (bad request) to indicate the error to the client.

      Attachments

        Activity

          People

            jensg Jens Geyer
            jensg Jens Geyer
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: