use correct status code if available
Merge pull request #10 from MauriceButler/status-code

use correct status code if available