Skip to content

Instantly share code, notes, and snippets.

@joewright
Created February 8, 2019 16:11
Show Gist options
  • Save joewright/aeb0f4c554bd1ab3bb3192f57810bc5b to your computer and use it in GitHub Desktop.
Save joewright/aeb0f4c554bd1ab3bb3192f57810bc5b to your computer and use it in GitHub Desktop.
Python 3 httplib
import http.client
BAD_REQUEST = http.client.BAD_REQUEST
FORBIDDEN = http.client.FORBIDDEN
FOUND = http.client.FOUND
NOT_FOUND = http.client.NOT_FOUND
OK = http.client.OK
UNPROCESSABLE_ENTITY = http.client.UNPROCESSABLE_ENTITY
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment