API Gateway HTTP Response status missing OK Reason Phrase
search cancel

API Gateway HTTP Response status missing OK Reason Phrase

book

Article ID: 233277

calendar_today

Updated On:

Products

CA API Gateway

Issue/Introduction

API Gateway 10.1 and higher versions have a different HTTP status response when compared with the previous versions.

Cause

Due to an HTTP library upgrade, HTTP response status codes now exclude reason phrases as the default.

Resolution

Prior to GW 10.1 CR1, the Gateway response would send an HTTP Response Message that contained a status line comprised of the following values:

status-line = HTTP-version SP status-code SP reason-phrase CRLF (Example: HTTP/1.1 200 OK).

With Gateway 10.1 CR1  the reason phrase is no longer included based on the following RFC 7230#section-3.1.2 comments:

  • The first line of a response message is the status-line, consisting of the protocol version, a space (SP), the status code, another space, a possibly empty textual phrase describing the status code, and ending with CRLF.
  • A client SHOULD ignore the reason-phrase content.

As noted in the RFC, the client should not expect this reason phrase as a result the latest HTTP libraries removed this reason phrase.

Additional Information

https://techdocs.broadcom.com/us/en/ca-enterprise-software/layer7-api-management/api-gateway/10-1/release-notes/new-features-and-enhancements.html#concept.dita_newfeatures_refresh_gw10cr2_addendum