Improve HTTP server multipart body parsing

Every handler function can return an HTTP response status code
to terminate request parsing and start the response.