# I want to ask something about limit\_zone

**URL:** <https://www.ruby-forum.com/t/i-want-to-ask-something-about-limit-zone/223971>\
**Category:** NGINX\
**Created:** [October 25, 2012, 10:19am UTC](https://www.ruby-forum.com/t/i-want-to-ask-something-about-limit-zone/223971 "2012-10-25T10:19:02Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![aris](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/258eb7/32.png) [@aris](https://www.ruby-forum.com/u/aris)\
**Post date:** [October 25, 2012, 10:19am UTC](https://www.ruby-forum.com/t/i-want-to-ask-something-about-limit-zone/223971/1 "2012-10-25T10:19:02Z")

</div>

I’ve learned that if some IP exceeds the limit, a 503 http status code  
will be returned.  
I’m trying to find a way to change the default 503 value, e.g. use  
some other code, such as 403 to replace it, can I ? and how to?  
thanks!

---

<div class="post-metadata">

**Author:** ![Benimaur\_G](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/bbe5ce/32.png) [@Benimaur\_G](https://www.ruby-forum.com/u/Benimaur_G)\
**Post date:** [October 25, 2012, 10:39am UTC](https://www.ruby-forum.com/t/i-want-to-ask-something-about-limit-zone/223971/2 "2012-10-25T10:39:31Z")

</div>

On 25 Oct2012, at 12:18 , Benimaur G. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> I’ve learned that if some IP exceeds the limit, a 503 http status code  
> will be returned.  
> I’m trying to find a way to change the default 503 value, e.g. use  
> some other code, such as 403 to replace it, can I ? and how to?  
> thanks!

error\_page 503 =403 /error\_page.html;

> **[Module ngx\_http\_core\_module](http://nginx.org/en/docs/http/ngx_http_core_module.html#error_page)**
>
> This directive appeared in version 1.11.8.

---

<div class="post-metadata">

**Author:** ![Benimaur\_G](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/bbe5ce/32.png) [@Benimaur\_G](https://www.ruby-forum.com/u/Benimaur_G)\
**Post date:** [October 30, 2012, 3:21am UTC](https://www.ruby-forum.com/t/i-want-to-ask-something-about-limit-zone/223971/3 "2012-10-30T03:21:35Z")

</div>

thanks, but is this method a global setting?  
can I only change the return code for limit\_zone?

---

<div class="post-metadata">

**Author:** ![Benimaur\_G](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/bbe5ce/32.png) [@Benimaur\_G](https://www.ruby-forum.com/u/Benimaur_G)\
**Post date:** [October 30, 2012, 10:22am UTC](https://www.ruby-forum.com/t/i-want-to-ask-something-about-limit-zone/223971/4 "2012-10-30T10:22:12Z")

</div>

On Tuesday 30 October 2012 06:20:47 Benimaur G. wrote:

> thanks, but is this method a global setting?  
> can I only change the return code for limit\_zone?

Nginx does not return 503 itself, except limit\_req/limit\_conn.

wbr, Valentin V. Bartenev

–

> **[F5 NGINX: Built for cloud-native apps. Ready for AI traffic.](https://www.f5.com/products/nginx)**
>
> Deliver modern applications with NGINX. Explore high-performance load balancing, API gateways, and web server solutions trusted by top global enterprises.

> **[nginx: donation](http://nginx.org/en/donation.html)**
