Move more HTTP stuff into constant file

This commit is contained in:
Paulus Schoutsen committed 2015-02-13 18:27:13 -08:00
1 parent 7a8f6500e2
commit 3f26fc3b06
8 files changed
+59 -61

No files matched your search

+1 -12
View File
@@ -10,22 +10,11 @@ import logging
from . import version
import homeassistant.util as util
from homeassistant.const import URL_ROOT, HTTP_OK
DOMAIN = 'frontend'
DEPENDENCIES = ['api']
HTTP_OK = 200
HTTP_CREATED = 201
HTTP_MOVED_PERMANENTLY = 301
HTTP_BAD_REQUEST = 400
HTTP_UNAUTHORIZED = 401
HTTP_NOT_FOUND = 404
HTTP_METHOD_NOT_ALLOWED = 405
HTTP_UNPROCESSABLE_ENTITY = 422
URL_ROOT = "/"
_LOGGER = logging.getLogger(__name__)