# WSETSTATUS

Updated: 11/30/2021, 7:00:45 PM
Created: 11/30/2021, 7:00:45 PM
Last Updated By: Jake Tuttle
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 (opens new window) for list of valid codes

Back to jAgent APIs