URISchemeResponse.setStatus

void setStatus(uint statusCode, string reasonPhrase = null)

Sets the status code and reason phrase for the response.

If status_code is a known value and reason_phrase is null, the reason_phrase will be set automatically.

Parameters

statusCodethe HTTP status code to be returned
reasonPhrasea reason phrase