Tests: added limit_req_status test.
diff --git a/limit_req.t b/limit_req.t
index 8d77c7f..facb1eb 100644
--- a/limit_req.t
+++ b/limit_req.t
@@ -21,7 +21,7 @@
 select STDERR; $| = 1;
 select STDOUT; $| = 1;
 
-my $t = Test::Nginx->new()->has(qw/http limit_req/)->plan(5);
+my $t = Test::Nginx->new()->has(qw/http limit_req/)->plan(6);
 
 $t->write_file_expand('nginx.conf', <<'EOF');
 
@@ -45,6 +45,11 @@
         location / {
             limit_req    zone=one  burst=1  nodelay;
         }
+        location /status {
+            limit_req    zone=one  burst=1  nodelay;
+
+            limit_req_status  501;
+        }
         location /long {
             limit_req    zone=long  burst=5;
         }
@@ -66,6 +71,7 @@
 like(http_get('/test1.html'), qr/^HTTP\/1.. 200 /m, 'request');
 http_get('/test1.html');
 like(http_get('/test1.html'), qr/^HTTP\/1.. 503 /m, 'request rejected');
+like(http_get('/status.html'), qr/^HTTP\/1.. 501 /m, 'request rejected status');
 http_get('/test1.html');
 http_get('/test1.html');