This error code fits better than the more generic "Internal Server
Error" (500) which implies that the problem is on the server.
Also, do not end the whole HTTP/2 session on a bad request.
if (isc_base64_decodestring(socket->h2.query_data,
&decoded_buf) != ISC_R_SUCCESS)
{
- code = ISC_HTTP_ERROR_GENERIC;
+ code = ISC_HTTP_ERROR_BAD_REQUEST;
goto error;
}
isc__buffer_usedregion(&decoded_buf, &data);
error:
result = server_send_error_response(code, ngsession, socket);
if (result != ISC_R_SUCCESS) {
- return (NGHTTP2_ERR_CALLBACK_FAILURE);
+ return (NGHTTP2_ERR_TEMPORAL_CALLBACK_FAILURE);
}
return (0);
}