Minor fixes to data types, correct HTTP methods / codes.