3dck-org / trip-planner-api

1 stars 0 forks source link

[API] Error json responses must be standartized #24

Closed Tronerta closed 1 year ago

Tronerta commented 2 years ago

Error response during oauth process:

{
    "error": "invalid_client",
    "error_description": "Client authentication failed due to unknown client, no client authentication included, or unsupported authentication method."
}

Errors everywhere else:

{
    "error": [
        "Email has already been taken", "Trip must exist"
    ]
}
zlacheuski commented 2 years ago

Add error_code to response, rename error --> error_message

Tronerta commented 2 years ago

Done