Skip to main content

Hi, I'm creating a cloud page to be used as an endpoint for a thirdparty connection (just like an REST API endpoint) with SSJS (Server Side Javascript). And I would like to know if is it possible to set HTTP Codes. Like if the thirdparty tries to call the endpoint with a invalid access token I would like to response that request with the HTTP Code 401 - Unauthorized or when it is an invalid body data return HTTP Code 400 and so on.

1 comment
0/9000