Skip to content

Commit 1449591

Browse files
committed
NGX_DECLINED: "404 Not Found" to "412 Precondition Failed"
404 can be achieved by using "internal;" https://nginx.org/r/internal
1 parent 8d655ac commit 1449591

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ngx_cache_purge_module.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1556,7 +1556,7 @@ ngx_http_cache_purge_handler(ngx_http_request_t *r) {
15561556
ngx_http_finalize_request(r, ngx_http_cache_purge_send_response(r));
15571557
return;
15581558
case NGX_DECLINED:
1559-
ngx_http_finalize_request(r, NGX_HTTP_NOT_FOUND);
1559+
ngx_http_finalize_request(r, NGX_HTTP_PRECONDITION_FAILED);
15601560
return;
15611561
# if (NGX_HAVE_FILE_AIO)
15621562
case NGX_AGAIN:

0 commit comments

Comments
 (0)