Made basic api pass/fail methods and parameters with correct HTTP codes and JSON messages with tests