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

Comments

Sabit Issakhan · Jun 10, 2020

Find this way to solve problem

Set %response.Status = ..#HTTP401UNAUTHORIZED

it's works! 

0