# Actions: how to set the httpcode of the response?

**URL:** <https://community.auth0.com/t/actions-how-to-set-the-httpcode-of-the-response/100412>\
**Category:** Get Help\
**Tags:** other, missing-category\
**Created:** [February 13, 2023, 8:17pm UTC](https://community.auth0.com/t/actions-how-to-set-the-httpcode-of-the-response/100412 "2023-02-13T20:17:53Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![ty.frith](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ty.frith/32/58484_2.png) [@ty.frith](https://community.auth0.com/u/ty.frith)\
**Post date:** [February 13, 2023, 8:41pm UTC](https://community.auth0.com/t/actions-how-to-set-the-httpcode-of-the-response/100412/3 "2023-02-13T20:41:02Z")

</div>

Hey there @bruno.crisafulli !

Unfortunately this isn’t currently possible, though I agree this would be nice. Please see the following post:

> [@Can't set the error code in an action](https://community.auth0.com/t/cant-set-the-error-code-in-an-action/78864/3):
>
> Hi @mattia.pettenuzzo , I’m afraid I could not find any evidence of this being currently worked on or planned. I would recommend raising this as a feedback request here: [Feedback](https://auth0.com/feedback) Until such a thing were implemented, I would recommend using the error description field to generate your application’s own error message, you could pass your own custom error codes for example or just look for the string, and have your application render the appropriate message based on the description, in the user’…

It might be worth adding your input to the following feedback request!

> [@Additional options for api.access.deny() in actions to trigger code on the backend](https://community.auth0.com/t/additional-options-for-api-access-deny-in-actions-to-trigger-code-on-the-backend/81607):
>
> Right now the default behavior is that the access.deny methods redirects the user to the default app where devoplers have to handle the error states. This behavior is totally fine. But it would be cool to have an option to have an additional paramater besides the one provided: success=false and error=message. I think something of something like an “errorCode”. Right now the only discriminator for handling error types in the tool is the error string itself. In my case I have multiple reasons …

Cheers,  
Ty

---

_[View the full topic](https://community.auth0.com/t/actions-how-to-set-the-httpcode-of-the-response/100412)._
