Use sensible error codes.