from rest_framework.exceptions import APIException


class RecordingNotFound(APIException):
    status_code = 404
    default_detail = "No recordings found for this call."
    default_code = "recording_not_found"


class RecordingDownloadFailed(APIException):
    status_code = 502
    default_detail = "Failed to download recording from Twilio."
    default_code = "recording_download_failed"
