def require_content_type(self, content_type):
if self.request.headers.get('<STR_LIT>', '<STR_LIT>') != content_type:<EOL><INDENT>self.halt(<NUM_LIT>, '<STR_LIT>' + content_type)<EOL><DEDENT>
Raises a 400 if request content type is not as specified.