allow additional status codes through constructor

through $options['statusCodes']
correct the option key

documentation fix
'statusCodes' instead of 'codes'
Merge pull request #2654 from mouyang/2.5-responseCodes

allow additional status codes through constructor