const: use dict.update instead of... what I did initially
parent
182c16f8a3
commit
cfef9bd857
|
@ -602,27 +602,32 @@ elif SITE == 'watchpeopledie.tv':
|
||||||
PERMS['HOLE_CREATE'] = 2
|
PERMS['HOLE_CREATE'] = 2
|
||||||
PERMS['POST_EDITING'] = 2
|
PERMS['POST_EDITING'] = 2
|
||||||
PERMS['ADMIN_ADD'] = 4
|
PERMS['ADMIN_ADD'] = 4
|
||||||
|
|
||||||
ERROR_TITLES[400] = "Bad Request"
|
ERROR_TITLES.update({
|
||||||
ERROR_TITLES[401] = "Unauthorized"
|
400: "Bad Request",
|
||||||
ERROR_TITLES[403] = "Forbidden"
|
401: "Unauthorized",
|
||||||
ERROR_TITLES[404] = "Not Found"
|
403: "Forbidden",
|
||||||
ERROR_TITLES[405] = "Method Not Allowed"
|
404: "Not Found",
|
||||||
ERROR_TITLES[406] = "Too Many Pings"
|
405: "Method Not Allowed",
|
||||||
ERROR_TITLES[409] = "Mortal Conflict"
|
406: "Too Many Pings",
|
||||||
ERROR_TITLES[410] = "Dead"
|
409: "Mortal Conflict",
|
||||||
ERROR_TITLES[413] = "Payload Too Large"
|
410: "Dead",
|
||||||
ERROR_TITLES[415] = "Unsupported Media Type"
|
413: "Payload Too Large",
|
||||||
ERROR_TITLES[500] = "Internal Server Error"
|
415: "Unsupported Media Type",
|
||||||
ERROR_MSGS[400] = "That request is invalid"
|
500: "Internal Server Error",
|
||||||
ERROR_MSGS[401] = "You need to login or sign up to do that"
|
})
|
||||||
ERROR_MSGS[403] = "You're not allowed to do that"
|
|
||||||
ERROR_MSGS[404] = "That wasn't found"
|
ERROR_MSGS.update({
|
||||||
ERROR_MSGS[405] = "You can't use this method here... if you keep getting this error tell us it's prolly something borked"
|
400: "That request is invalid",
|
||||||
ERROR_MSGS[409] = "There's a conflict between what you're trying to do and what you or someone else has done and because of that you can't do what you're trying to do."
|
401: "You need to login or sign up to do that",
|
||||||
ERROR_MSGS[410] = "This link is dead. Request a new one to try again"
|
403: "You're not allowed to do that",
|
||||||
ERROR_MSGS[413] = "You need to upload a smaller file please"
|
404: "That wasn't found",
|
||||||
ERROR_MSGS[429] = "Please wait a bit before doing that"
|
405: "You can't use this method here... if you keep getting this error tell us it's prolly something borked",
|
||||||
|
409: "There's a conflict between what you're trying to do and what you or someone else has done and because of that you can't do what you're trying to do.",
|
||||||
|
410: "This link is dead. Request a new one to try again",
|
||||||
|
413: "You need to upload a smaller file please",
|
||||||
|
429: "Please wait a bit before doing that",
|
||||||
|
})
|
||||||
|
|
||||||
POLL_THREAD = 13225
|
POLL_THREAD = 13225
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue