Question
Sabit Issakhan · Jun 10, 2020

How to response with 401 unauthorized in REST

Hello everyone! 

I have REST API and want check user with http header authorization,

When user input incorrect data refuse them with 401 unauthorized,

Question how to response with 401 unauthorized

00
1 0 1 172
Log in or sign up to continue

Replies

Find this way to solve problem

Set %response.Status = ..#HTTP401UNAUTHORIZED

it's works!