updated error codes from docs