diff --git a/academic-id/slim-app/src/osteam/App.php b/academic-id/slim-app/src/osteam/App.php index ea03c890719b315e432ca88e0f71483e22b3dba9..065fe7d82a16c9272115c74ece9cefd8143f1870 100644 --- a/academic-id/slim-app/src/osteam/App.php +++ b/academic-id/slim-app/src/osteam/App.php @@ -121,7 +121,7 @@ class App extends BaseApp 'message' => 'Error: Service Call Parameters Error, fields query parameter has unknown fields' ]), 400); } else { - return $this->withTextReady($res, implode(',', $response_texts), 400); + return $this->withTextReady($res, implode(',', $response_texts), 200); } } return $this->withJsonReady($res, $results['response'], $results['http_status']); @@ -241,9 +241,11 @@ class App extends BaseApp && $parsed_result['inspectionResult']['webServiceSuccess'] === true && is_array($parsed_result['inspectionResult']['beneficiaryNames'])) { return $this->withTextReady($res, $parsed_result['inspectionResult']['beneficiaryNames'][0]); + } else { + return $this->withTextReady($res, 'false'); } } - return $this->withTextReady($res, 'false'); + return $this->withJsonReady($res, $results['response'], $results['http_status']); }