File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed
src/main/java/in/erail/route Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 44 <modelVersion >4.0.0</modelVersion >
55 <groupId >in.erail</groupId >
66 <artifactId >api-framework</artifactId >
7- <version >2.4.2 </version >
7+ <version >2.4.3 </version >
88 <packaging >jar</packaging >
99 <developers >
1010 <developer >
177177 <dependency >
178178 <groupId >in.erail</groupId >
179179 <artifactId >glue</artifactId >
180- <version >2.4.2 </version >
180+ <version >2.4.3 </version >
181181 </dependency >
182182 <dependency >
183183 <groupId >org.mockito</groupId >
Original file line number Diff line number Diff line change 2525import io .vertx .reactivex .ext .web .RoutingContext ;
2626import io .vertx .reactivex .ext .web .api .contract .openapi3 .OpenAPI3RouterFactory ;
2727import in .erail .service .RESTService ;
28+ import io .netty .handler .codec .http .HttpResponseStatus ;
2829import io .vertx .reactivex .core .buffer .Buffer ;
2930import io .vertx .reactivex .ext .web .Cookie ;
3031import java .util .Arrays ;
@@ -257,19 +258,19 @@ public Router getRouter(Router pRouter) {
257258 apiFactory .addFailureHandlerByOperationId (service .getOperationId (), (routingContext ) -> {
258259 routingContext
259260 .response ()
260- .setStatusCode (routingContext . statusCode ())
261+ .setStatusCode (HttpResponseStatus . BAD_REQUEST . code ())
261262 .end (generateErrorResponse (routingContext ));
262263 });
263264 apiFactory .setValidationFailureHandler ((routingContext ) -> {
264265 routingContext
265266 .response ()
266- .setStatusCode (routingContext . statusCode ())
267+ .setStatusCode (HttpResponseStatus . BAD_REQUEST . code ())
267268 .end (generateErrorResponse (routingContext ));
268269 });
269270 apiFactory .setNotImplementedFailureHandler ((routingContext ) -> {
270271 routingContext
271272 .response ()
272- .setStatusCode (routingContext . statusCode ())
273+ .setStatusCode (HttpResponseStatus . BAD_REQUEST . code ())
273274 .end (generateErrorResponse (routingContext ));
274275 });
275276 });
You can’t perform that action at this time.
0 commit comments