MCPcopy Create free account
hub / github.com/api-platform/website / checkStatus

Function checkStatus

pwa/prebuild.js:109–117  ·  view source on GitHub ↗
(response: any)

Source from the content-addressed store, hash-verified

107}
108
109const checkStatus = (response: any) => {
110 if (response.ok) {
111 return response;
112 }
113
114 throw new Error(
115 `HTTP Error Response: ${response.status} ${response.statusText}`
116 );
117};
118
119async function generateXsd() {
120 try {

Callers 1

generateXsdFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected