def METHOD_NAME(self):
    error = self.errors.as_data()["__all__"][0]
    if error.code == "banned":
        error.message = self.user_ban.ban.get_serialized_message()
    else:
        error.message = error.messages[0]
    return {"detail": error.message, "code": error.code}