Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

509 Bandwidth Limit Exceeded

Discussion in 'General Discussion' started by Ben Harris, Apr 16, 2009.

  1. Ben Harris

    Ben Harris Member

    Mar 31, 2008
    Likes Received:
    Trophy Points:
    Hi there,

    I'm currently working on a script to kind of detect if a site is down, or isn't as it should be. It is all working fine, but one of the things I was working on was identifying sites which have exceeded their bandwidth limit. I thought this would be easy as the Bandwidth Limit Exceeded page had its own HTTP status code, but when I came to test it out on an account which had exceeded its bandwidth limit, it would not work.

    (I would like to add here that I know I can view accounts over their bandwidth limits within WHM, the script I am designing however needs to be able to identify the sites "status" no-matter which server the site is on)

    I looked into it further, and it turns out that the page is actually returning a 500 Internal Server Error page and not the 509 status code.

    I took a look in /usr/local/cpanel/apache/mod_bwlimited.c and I can see clearly that the status code is defined in it, and it all looked OK.

    Is anyone else seeing the same thing? Is it a bug or just my server?



Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice