Use the specified param

Use the specified param rather then hard coding status code.
Merge pull request #1 from bweston92/patch-1

Use the specified param