         case .incorrectPassword                     : return .unauthorized
         case .incorrectOldPassword                  : return .unauthorized
         case .passwordWithoutUsernameOrOldPassword  : return .unprocessableEntity
+        case .malformedPayload                      : return .badRequest
         }
     }
 

            return "Incorrect old password."
        case .passwordWithoutUsernameOrOldPassword:
            return "Password should only be provided when updating it or updating the username."
        }
    }
}

    case incorrectPassword
    case incorrectOldPassword
    case passwordWithoutUsernameOrOldPassword
    case malformedPayload
}

// MARK: - AbortError
