Chaning the 413 error message

how do i change the 413 error message?

413 Request Entity Too Large
thank you

Use something like:

error_page 413 /413.html;
location = /413.html {
root /path/to/your/site;
}

To change the error page. If you want to change nginx’s default
message, but not the error page, i guess you’d have to edit the code.
If none of the above please calrify.

Welcome to NGINX Wiki! | NGINX has many good references.