This is Webservice SDK for mbed. LPCXpresso1769/LPC1768/FRDM-K64F/LPC4088
Fork of libMiMic by
Diff: mbed/HttpdConnection.cpp
- Revision:
- 43:a182f2b5ff41
- Parent:
- 19:33b9ba0859ee
- Child:
- 81:e5e4f2264d24
--- a/mbed/HttpdConnection.cpp Thu Jul 04 11:05:56 2013 +0000 +++ b/mbed/HttpdConnection.cpp Tue Jul 09 12:07:17 2013 +0000 @@ -16,6 +16,10 @@ { this->_ref_inst=i_ref_inst; } + bool HttpdConnection::sendError(unsigned short i_status_code) + { + return NyLPC_TBool_TRUE==NyLPC_cHttpdConnection_sendResponseHeader2(this->_ref_inst,i_status_code,"text/html",0,NULL); + } bool HttpdConnection::sendHeader(unsigned short i_status_code,const char* i_content_type,const char* i_additional_header) { return NyLPC_TBool_TRUE==NyLPC_cHttpdConnection_sendResponseHeader(this->_ref_inst,i_status_code,i_content_type,i_additional_header);