Add status code handler.
Merge pull request #3 from khamaileon/status-code-handler

Add status code handler.