Validation of requests and responses