src/main/java/com/authlete/jaxrs/ResponseUtil.java
public static Response badRequest(String entity)
    {
        return builder(Status.BAD_REQUEST, entity, MEDIA_TYPE_JSON).build();
    }
public static Response badRequest(String entity)
    {
        return builder(Status.BAD_REQUEST, entity, MEDIA_TYPE_JSON).build();
    }
Create a response of {@code "400 Bad Request"}
with the given entity formatted in
{@code "application/json;charset=UTF-8"}.