changes to status codes and JSON content