[REST] Returning http response code

[REST] Returning http response code

  
Restful web services - Is there any way of returning the following http code? 
  • 200 - Request OK
  • 201 - Resource created
  • 401 - Unauthorized request
  • 402 - Failed request
  • 404 - Resource was not found
  • 50x - server error

Hi Robert,

Have you seen the SetStatusCode of the HTTPRequestHandler extension?

Regards,
João Rosado
João Rosado wrote:
Hi Robert,

Have you seen the SetStatusCode of the HTTPRequestHandler extension?

Regards,
João Rosado
This does the job, thanks!