+ def get_header(self, name: str, default: Optional[str] = None) -> Optional[str]:
+ return cast(Optional[str], self.request.get_header(name, default=default))
+
+
+ def error(self, msg: str, status: int = 400) -> HTTPNominatimError:
+ return HTTPNominatimError(msg, status, self.content_type)
+
+
+ def create_response(self, status: int, output: str) -> None:
+ self.response.status = status
+ self.response.text = output
+ self.response.content_type = self.content_type