Fixed some generic error messages. Started method to return generic
error messages for error codes.