Skip to content

Commit 94c0404

Browse files
fix: return BadRequest for the request denied exams
1 parent a51d8f7 commit 94c0404

File tree

1 file changed

+1
-1
lines changed
  • aggregation_mode/gateway/src

1 file changed

+1
-1
lines changed

aggregation_mode/gateway/src/http.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ impl GatewayServer {
170170
if daily_tasks_by_address >= state.config.max_daily_proofs_per_user {
171171
let formatted_time_left = get_time_left_day_formatted();
172172

173-
return HttpResponse::InternalServerError().json(AppResponse::new_unsucessfull(
173+
return HttpResponse::BadRequest().json(AppResponse::new_unsucessfull(
174174
format!(
175175
"Request denied: Query limit exceeded. Quotas renew in {formatted_time_left}"
176176
)

0 commit comments

Comments
 (0)