Sounds like you should respond to that with a 400 Bad Request
The server cannot or will not process the request due to something that is perceived to be a client error (e.g., malformed request syntax, invalid request message framing, or deceptive request routing).
Not yet, but it is on the roadmap!
https://developer.gimp.org/core/roadmap/