Nicer formatting on api error dispatch table
Stop using error-based conditional in API error handling, it is bad and wrong and I am not sure why it was even there.
Stop creating error objects just to have them thrown away
Accidental newline removal
More sensible imports