Skip to content

Commit

Permalink
Added Enum option to status set on ServerResponse.
Browse files Browse the repository at this point in the history
  • Loading branch information
SeanMollet committed Oct 2, 2018
1 parent aadae7b commit c28771d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/main/java/io/sinistral/proteus/server/ServerResponse.java
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,12 @@ public ServerResponse<T> throwable(Throwable throwable)
return this;
}

public ServerResponse<T> status(Response.Status status)
{
this.status = status.getStatusCode();
return this;
}

public ServerResponse<T> status(int status)
{
this.status = status;
Expand Down

0 comments on commit c28771d

Please sign in to comment.