Convert 500 internal server error to another

Roshan
2013-01-07
2013-05-23
  • Roshan

    Roshan - 2013-01-07

    Hi

    This is my first post to this forum and want to thanks for developing such a valuable module to apache.

    Currently I am using mod_qos v10.13 and my configuration as below.

    <IfModule mod_qos.c>
    QS_LocRequestLimitMatch "^/wsdl/.*$" 5
    QS_LocRequestPerSecLimitMatch "^/wsdl/.*$" 3

    QS_ErrorResponseCode 429
    </IfModule>

    As you can see, I want to get the error response code 429 (Too Many Requests) instead of 500 (internal server error).  Because http error code 500 not suitable in our situation and 429 is the ideal one. Could you please help me to achieve this.

    Many thanks.

    /Roshan

     
  • Pascal Buchbinder

    You probably need to choose one of the status codes known by Apache: 100 101 102 200 201 202 203 204 205 206 207 300 301 302 303 304 305 307 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 422 423 424 426 500 501 502 503 504 506 507 510

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks