In this chapter, we will go through the following recipes:
Creating static validation rules using fluent syntax
Returning meaningful HTTP error messages
Adding custom headers via response filter
Restricting file uploads by type using filters
Creating a user-configurable HTTP callback service using a response filter
Applying a rate limit to a web service endpoint using a request filter
Restrict user actions with session details using a validator