Refactor error handling and logging in API responses
This commit is contained in:
@ -72,7 +72,7 @@ case 'POST':
|
||||
}
|
||||
if (!$chk->fetch()) {
|
||||
qdb_discard($tmpDb, $lockFp);
|
||||
json_error('NOT_FOUND', 'Coach not found or not authorized', 400);
|
||||
json_error('NOT_FOUND', 'Coach not found or not authorized', 404);
|
||||
}
|
||||
|
||||
[$rbacClause, $rbacParams] = rbac_client_filter($tokenRec);
|
||||
|
||||
Reference in New Issue
Block a user