Uploaded image for project: 'Mesos'
  1. Mesos
  2. MESOS-5363

Content-Type for HTTP error responses should match Accept-Type in requests

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • None
    • None

    Description

      Currently, HTTP error responses (4xx and 5xx) with body are sent with Content-Type `text/plain`. This is done even if the original HTTP request didn't contain `text/plain` as one of the Accept-Types in the header. Once we use application level error codes (MESOS-4548) in the body of HTTP responses, we should match the Content-Type of response to Accept-Type in the request.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              vinodkone Vinod Kone
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated: