AFAIK you cannot override NetSuite's HTTPS status ...
# suitescript
s
AFAIK you cannot override NetSuite's HTTPS status codes
e
Seconded. You cannot set the code yourself. You can
return
normally for a
200
, or you can
throw
for a
400
and
throw
out of a Suitelet does not give you a pretty page
c
I’m calling the Suitelet from a client script Promise so I just need the status code to bubble up properly so I can let the Promise do it’s job. Trying to avoid error handling in the
then()
function if possible.
e
throw
will give you a 400
🙏🏻 1