def invalidContentType()

in api/src/main/scala/com/gu/core/models/errors.scala [23:49]


  def invalidContentType(errors: List[String]): InvalidContentType =
    InvalidContentType(
      "Invalid content type. Support types are: 'multipart/form-data' or 'application/json'.",
      errors
    )

  def invalidFilters(errors: List[String]): InvalidFilters =
    InvalidFilters("Invalid filter parameters", errors)

  def avatarNotFound(errors: List[String]): AvatarNotFound =
    AvatarNotFound("Avatar not found", errors)

  def ioFailed(errors: List[String]): IOFailed =
    IOFailed("IO operation failed", errors)

  def dynamoRequestFailed(errors: List[String]): DynamoRequestFailed =
    DynamoRequestFailed("DynamoDB request failed", errors)

  def tokenAuthorizationFailed(errors: List[String]): TokenAuthorizationFailed =
    TokenAuthorizationFailed("Unable to get API access token. Must be provided in Authorization header as: 'Bearer token=[key]'", errors)

  def userAuthorizationFailed(errors: List[String]): UserAuthorizationFailed =
    UserAuthorizationFailed("Unable to read user cookie. Must be provided in Authorization header as: 'Bearer cookie=[cookie]'", errors)

  def unableToReadStatusRequest(errors: List[String]): UnableToReadStatusRequest = {
    UnableToReadStatusRequest("Unable to read status request", errors)
  }