We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9e1054f commit c432928Copy full SHA for c432928
jooby/src/main/java/io/jooby/Route.java
@@ -352,7 +352,9 @@ public interface Handler extends Serializable, Aware {
352
353
/** Handler for {@link StatusCode#REQUEST_ENTITY_TOO_LARGE} responses. */
354
public static final Handler REQUEST_ENTITY_TOO_LARGE =
355
- ctx -> ctx.sendError(new StatusCodeException(StatusCode.REQUEST_ENTITY_TOO_LARGE));
+ ctx ->
356
+ ctx.setResponseCode(StatusCode.REQUEST_ENTITY_TOO_LARGE)
357
+ .sendError(new StatusCodeException(StatusCode.REQUEST_ENTITY_TOO_LARGE));
358
359
/** Handler for {@link StatusCode#NOT_ACCEPTABLE} responses. */
360
public static final Route.Before ACCEPT =
0 commit comments