8 lines
585 B
Python
8 lines
585 B
Python
ok_response = 'HTTP/1.1 200 OK\r\ncontent-type: text/html\r\n\r\n'.encode('ascii')
|
|
ok_text_response = 'HTTP/1.1 200 OK\r\ncontent-type: text/plain\r\n\r\n'.encode('ascii')
|
|
ok_json_response = 'HTTP/1.1 200 OK\r\ncontent-type: application/json\r\n\r\n'.encode('ascii')
|
|
ok_icon_response = 'HTTP/1.1 200 OK\r\ncontent-type: image/x-icon\r\n\r\n'.encode('ascii')
|
|
no_content_response = 'HTTP/1.1 204 No Content\r\n\r\n'.encode('ascii')
|
|
not_found_response = 'HTTP/1.1 404 Not Found\r\n\r\n'.encode('ascii')
|
|
server_error_response = 'HTTP/1.1 500 Internal Server Error\r\n\r\n'.encode('ascii')
|