added code to json response for check availability so different message types can be handled differently by client

This commit is contained in:
David Kennedy 2023-12-14 17:56:23 -05:00
parent d9237c2927
commit 493f64e070
No known key found for this signature in database
GPG key ID: 6528A5386E66B96B
2 changed files with 9 additions and 9 deletions

View file

@ -43,11 +43,11 @@ class GenericError(Exception):
"""
_error_mapping = {
GenericErrorCodes.CANNOT_CONTACT_REGISTRY: """
Were experiencing a system connection error. Please wait a few minutes
and try again. If you continue to receive this error after a few tries,
contact help@get.gov.
""",
GenericErrorCodes.CANNOT_CONTACT_REGISTRY: (
"Were experiencing a system connection error. Please wait a few minutes "
"and try again. If you continue to receive this error after a few tries, "
"contact help@get.gov."
),
GenericErrorCodes.GENERIC_ERROR: ("Value entered was wrong."),
}