Adding static const's for error response codes, removing obsolete type check