Fixing server error messages to return the correct message id (if available).