# WSETSTATUS

Updated: 4/16/2021, 7:48:09 PM
Created: 4/16/2021, 7:48:09 PM
Last Updated By: Mike Wright
Read Time: 1 minute(s)

The WSETSTATUS subroutine allows you to modify the response code.

# Command Syntax

CALL WSETSTATUS(STATUSCODE)
1

# Syntax Elements

The WSETSTATUS subroutine expects a numeric response code. No validation is performed on the status code.  The default code is a 200 (Success).

# Example

CALL WSETSTATUS(405);*Method not allowed
1

# Notes

See link for list of valid codes

Back to jAgent APIs