Skip to content

Commit

Permalink
fix(http): Keep the status message as part of the response for consumer
Browse files Browse the repository at this point in the history
  • Loading branch information
brasseld authored and NicolasGeraud committed Aug 26, 2019
1 parent e52c694 commit 338ed71
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/main/java/io/gravitee/gateway/api/Response.java
Expand Up @@ -31,6 +31,14 @@ public interface Response extends WriteStream<Buffer> {

int status();

/**
* Reason-Phrase is intended to give a short textual description of the Status-Code.
* @return
*/
String reason();

Response reason(String message);

/**
* @return the headers in the response.
*/
Expand Down
Expand Up @@ -30,6 +30,12 @@ public interface ProxyResponse extends ReadStream<Buffer> {
*/
int status();

/**
* Reason-Phrase is intended to give a short textual description of the Status-Code.
* @return
*/
default String reason() { return null; }

/**
* @return the headers in the response.
*/
Expand Down

0 comments on commit 338ed71

Please sign in to comment.