HttpResponse.setStatus

Sets the status of the response. This can only be done before headers are flushed.

struct HttpResponse
setStatus

Parameters

newStatus HttpStatus

The status to set.

Return Value

The response object, for method chaining.