@Override
    public AwsProxyResponse handle(Throwable ex) {
        if (ex instanceof ErrorResponse) {
            return new AwsProxyResponse(((ErrorResponse) ex).getStatusCode().value(),
                    HEADERS, getErrorJson(ex.getMessage()));
        } else {
            return super.handle(ex);
        }
    }
@Test
    void noHandlerFoundExceptionResultsIn404() {
        AwsProxyResponse response = new SpringAwsProxyExceptionHandler().
                handle(new NoHandlerFoundException(HttpMethod.GET.name(), "https://atesturl",
                        HttpHeaders.EMPTY));
        assertEquals(Response.Status.NOT_FOUND.getStatusCode(), response.getStatusCode());
    }