Add http status mapping description.
Extract inline functions from example for clarity.