Fix proper response codes based off of most probable statusCode

Applies to #296

**NOTE** Prior code deduced from other routines which probably have the same issue.
Merge pull request #303 from Martii/documentPageFixes

Fix proper response codes based off of most probable statusCode