diff --git a/backend/api/utils.go b/backend/api/utils.go index 0a7efb7..48d3b57 100644 --- a/backend/api/utils.go +++ b/backend/api/utils.go @@ -17,6 +17,6 @@ func HandleDBError(err error) (int, string) { if err == nil { return int(status), message } else { - return 500, message + return 400, pgErr.Message } }