Properly return error codes on success || failure.