dxa: return meaningful error codes.