Add HTTP 422 status code
Resolve a bunch of notices and E_STRICT warnings