Class Responses

java.lang.Object
ch.tocco.nice2.rest.core.spi.Responses

public final class Responses extends Object
  • Method Details

    • notFound

      public static jakarta.ws.rs.core.Response notFound(String message)
    • badRequest

      public static jakarta.ws.rs.core.Response badRequest(String message)
    • badRequest

      public static jakarta.ws.rs.core.Response badRequest(String message, @Nullable @Nullable String errorCode)
    • unauthorized

      public static jakarta.ws.rs.core.Response unauthorized(String message)
    • forbidden

      public static jakarta.ws.rs.core.Response forbidden(String message)
    • preconditionFailed

      public static jakarta.ws.rs.core.Response preconditionFailed(String message)
    • preconditionRequired

      public static jakarta.ws.rs.core.Response preconditionRequired(String message)
    • error

      public static jakarta.ws.rs.core.Response error(jakarta.ws.rs.core.Response.Status status, String message)
    • error

      public static jakarta.ws.rs.core.Response error(jakarta.ws.rs.core.Response.Status status, String message, @Nullable @Nullable String errorCode)
    • error

      public static jakarta.ws.rs.core.Response error(jakarta.ws.rs.core.Response.Status status, ErrorMessage errorMessage)