use fully qualified names
remove redundancies and fix offeses
add status code stubs
remove returns from ensure block
restructure validate arguments to rubocop wants, make sure headers have a value