badRequest method
A shelf.Response
for API calls that encountered a request problem e.g.,
setActiveSurvey not called.
This is a 400 Bad Request response.
Implementation
shelf.Response badRequest([String? error]) {
if (error != null) print(error);
return shelf.Response(HttpStatus.badRequest, body: error);
}