Problem
The server does not correctly sanitize non-string/null URL parameters, leading to server crashes when validating URL objects. Additionally, backend Google API fetch requests do not gracefully capture custom error bodies when HTTP status codes are returned, hiding critical diagnostics.
Proposed Solution
Add strict type checks for input requests, return clean 400 validation responses, and parse text error structures safely in callSafeBrowsingWithRetry.
Problem
The server does not correctly sanitize non-string/null URL parameters, leading to server crashes when validating URL objects. Additionally, backend Google API fetch requests do not gracefully capture custom error bodies when HTTP status codes are returned, hiding critical diagnostics.
Proposed Solution
Add strict type checks for input requests, return clean 400 validation responses, and parse text error structures safely in
callSafeBrowsingWithRetry.