Just thought of having different error messages for different error types. If not required we can combine to general error.