ari-ban / issue-test

0 stars 0 forks source link

Abort request exceeding maxPostSize with HTTP 413 #1929

Closed arinban closed 7 years ago

arinban commented 7 years ago

When an incoming request exceeds the configured maxPostSize, grizzly aborts the request with HTTP 400.

Would you be able to please report this as HTTP 413 Payload Too Large?

arinban commented 6 years ago
arinban commented 7 years ago

@rlubke Commented @jashap Hey James, mind looking into this?

arinban commented 7 years ago

@jashap Commented Sure, I'll take a look

arinban commented 7 years ago

@hankipanky Commented Hi @rlubke, @jashap,

thanks for this. May I suggest to use HttpStatus.REQUEST_ENTITY_TOO_LARGE_413.getReasonPhrase() along with the status code 413?

Thanks, Henning

arinban commented 7 years ago

@rlubke Commented Ugh, sorry about that. Fixed.