setResponseStatus (method)
Sets an HTTP status to be sent with the response.
Syntax
- (void)setResponseStatus:(long long)connectionId :(int)statusCode;
public func setResponseStatus(_ connectionId: Int64, _ statusCode: Int32) throws -> Void
Remarks
Use this method to set an HTTP status for the request. A good place to call this method is a request-marking event, such as GetRequest.