You don't need the above for specref, it doesn't have any specific error codes outside of http 404.